package org.bapoint.bawirelessprogressusercenter.config;

public class HelloBean {
    private String message = "Hello, Spring!";

    public void init() {
        System.out.println("✅ HelloBean 正在初始化 (init-method)");
    }

    public void destroy() {
        System.out.println("🧹 HelloBean 正在销毁 (destroy-method)");
    }

    public void sayHello() {
        System.out.println(message);
    }

    // Setter for testing
    public void setMessage(String message) {
        this.message = message;
    }
}